package com.kyrie.utils;

/***
 * 描述: 全局常量配置类
 *
 * @author wuxiang
 * @date 2020-04-06 16:31
 */
public class GlobalConstants {

    // 接口成功调用resultCode
    public static final String SUCCESS_CODE = "1";

    // 接口成功失败resultCode
    public static final String FAIL_CODE = "0";

    // 无认证数据字典类型
    public static final String ANON_TYPE_CODE = "shiroUrl";

    // 无认证数据字典值编码
    public static final String ANON_VAL_CODE = "anno";

    // jwt claim
    public static final String JWT_CLAIM = "user";

    // 安全token
    public static final String SECURITY_TOKEN = "token";

    // 越权访问错误信息
    public static final String CROSS_ACCESS_MSG = "请求被拦截，拦截原因：当前请求存在越权访问的安全风险。";

    // token认证失败
    public static final String TOKEN_LOSS_MSG = "token认证失败，失败原因：token丢失。请重新登录。";

    // 受限制请求提示
    public static final String LIMITED_REQUEST = "受限制的请求，请核实用户权限！";

    // 用户访问标识userNo,不带此标识会被拦截掉
    public static final String BUSINESS_REQUEST_ID = "userNo";

    // redis缓存失效时间
    public static final int REDIS_EXPIRE_TIME = 300;// redis缓存失效时间

    // 全局数据库mapper目录
    public static final String NAME_SPACE = "com.kyrie.config.";

    // 全局数据字典配置
    public static final String TYPE_2097 = "2097";

    // jwt token 失效时间
    public static final String TYPE_2097_JWTTOKEN_EXPIRE_TIME = "jwtToken_expire_time";

    // jwt token 密钥
    public static final String TYPE_2097_SECRET = "secretCode";

    /**################################## kafka相关常量配置 ##################################*/
    public final static String AUTO_FLUSH_NAME = "autoFlush";
    public final static String TOPIC_NAME = "topic";
    public final static String KEY_SERIALIZER = "key-serializer";
    public final static String VALUE_SERIALIZER = "value-serializer";


    /**################################## kafka相关常量配置 ##################################*/

    /**################################## REDIS 相关常量配置 ##################################*/

    // 缓存失效时间
    public static final int CACHE_EXPIRE_TIME = 5 * 60;

    /**################################## REDIS 相关常量配置 ##################################*/






}
